home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2003 June / macformat-130.iso / mac / Reviewed⁄Demos / Spearhead Demo / demota / pak1.pk3 / scripts / ocean.shader < prev    next >
Encoding:
Text File  |  2002-10-21  |  4.0 KB  |  202 lines

  1. textures/misc_outside/basicocean
  2. {
  3.     qer_editorimage textures/misc_outside/ocean1.tga
  4.     qer_trans .4
  5.     surfaceparm nonsolid
  6.     surfaceparm trans
  7.     surfaceparm water
  8.     cull none
  9.     nopicmip
  10.     deformvertexes wave 30 sin 0 10 0 .2
  11.     {
  12.         map textures/misc_outside/ocean1.tga
  13.         blendFunc blend
  14.         depthWrite
  15.         rgbGen identity
  16.         tcMod scroll .05  -.025
  17.     }
  18.     {
  19.         map $lightmap
  20.         rgbGen Identity
  21.         blendFunc GL_DST_COLOR GL_ZERO
  22.         depthFunc equal
  23.     }
  24. }
  25.  
  26. textures/misc_outside/deepbluesea_test
  27. {
  28.     qer_editorimage textures/misc_outside/ocean2.tga
  29.     qer_trans .4
  30.     surfaceparm trans
  31.     surfaceparm water
  32. //    surfaceparm nolightmap
  33.     cull none
  34.     deformvertexes wave 30 sin 0 60 0 .1
  35. //    deformvertexes wave 30 sin 0 10 0 .2
  36.     {
  37.         map textures/misc_outside/ocean1.tga
  38.         tcGen environment
  39. //        map $whiteimage
  40. //        blendFunc blend
  41. //        alphaGen oneMinusDot
  42. //        vrgbGen constant 0 .25 .75
  43.     }
  44.     {
  45.         map textures/misc_outside/ocean1.tga
  46.         blendFunc GL_ONE GL_ONE
  47. //        tcMod scale .333 .33
  48.         tcMod scale .33 .33
  49. //        tcMod turb 0 .2 0 .1
  50.         tcMod scale 4 1
  51.         tcMod turb .1 .3 .2 .1
  52.         tcMod scale .25 1
  53.     nextbundle
  54.         map textures/misc_outside/ocean2.tga
  55.         tcMod scale .55 .55
  56.         tcMod scroll -.03 -.06
  57. //        tcMod scroll -.03 -.05
  58.     }
  59.     {
  60.         map textures/misc_outside/ocean1.tga
  61.         blendFunc GL_SRC_ALPHA GL_ONE
  62.         alphaGen lightingSpecular
  63.         tcMod scroll .07 -.04
  64.     }
  65.     {
  66.         map $lightmap
  67.         rgbGen Identity
  68.         blendFunc GL_DST_COLOR GL_ZERO
  69.         depthFunc equal
  70.     }
  71. }
  72.  
  73. textures/misc_outside/multiocean
  74. {
  75.     qer_editorimage textures/misc_outside/ocean2.tga
  76.     qer_trans .4
  77.     surfaceparm trans
  78.     surfaceparm water
  79. //    surfaceparm nolightmap
  80.     cull none
  81.     deformvertexes wave 20 sin 0 40 0 .2
  82. //    deformvertexes wave 30 sin 0 10 0 .2
  83.     {
  84.         map textures/misc_outside/ocean1.tga
  85.         tcGen environment
  86.         tcMod scale .222 .222
  87.         tcMod scroll .003 .004
  88.     }
  89.     {
  90.         map textures/misc_outside/froth1.tga
  91.         blendFunc GL_ONE GL_ONE
  92.         tcMod scale .255 .255
  93.         tcMod turb .1 .3 .2 0
  94.         tcMod scroll .003 .03
  95.     nextbundle
  96.         map textures/misc_outside/froth1.tga
  97.         tcMod scale .039 .039
  98.         tcMod scroll .02 .02
  99.     }
  100.     {
  101.         map textures/misc_outside/froth1.tga
  102.         blendFunc GL_SRC_ALPHA GL_ONE
  103.         alphaGen lightingSpecular
  104.         tcMod scroll .07 -.04
  105.     }
  106.     {
  107.         map $lightmap
  108.         rgbGen Identity
  109.         blendFunc GL_DST_COLOR GL_ZERO
  110.         depthFunc equal
  111.     }
  112. }
  113.  
  114. textures/misc_outside/largestream
  115. {
  116.     qer_editorimage textures/misc_outside/stream1.tga
  117.     qer_trans .4
  118.     surfaceparm nonsolid
  119.     surfaceparm trans
  120.     surfaceparm water
  121.     cull none
  122.     nopicmip
  123.     deformvertexes wave 30 sin 0 10 0 .2
  124.     {
  125.         map textures/misc_outside/stream2fx.tga
  126.         tcGen environment
  127.         tcMod turb 0 .003 0 1
  128.     nextbundle
  129.         map textures/misc_outside/stream2fx.tga
  130.         tcGen environment
  131.         tcMod turb 0 .001 .3 4
  132.     }
  133.     {
  134.         map textures/misc_outside/stream1.tga
  135.         blendFunc blend
  136.         rgbGen identity
  137.         tcMod scroll .05  -.025
  138. //        tcMod trans .5
  139.     }
  140.     {
  141.         map $lightmap
  142.         rgbGen Identity
  143.         blendFunc GL_DST_COLOR GL_ZERO
  144.     }
  145. }
  146.  
  147. textures/misc_outside/strange_frothy_water
  148. {
  149.     qer_editorimage textures/misc_outside/stream1.tga
  150.     qer_trans .4
  151.     surfaceparm nonsolid
  152.     surfaceparm trans
  153.     surfaceparm water
  154.     cull none
  155.     nopicmip
  156.     deformvertexes wave 30 sin 0 10 0 .2
  157.     {
  158.         map textures/misc_outside/stream2fx.tga
  159.         tcGen environment
  160.         tcMod turb 0 .003 0 1
  161.     nextbundle
  162.         map textures/misc_outside/stream2fx.tga
  163.         tcGen environment
  164.         tcMod turb 0 .001 .3 4
  165.     }
  166.     {
  167.         map textures/misc_outside/stream1.tga
  168.         blendFunc GL_ONE GL_ONE
  169. //        blendFunc blend
  170.         rgbGen identity
  171.         tcMod scroll .05  -.025
  172.     }
  173.     {
  174.         map $lightmap
  175.         rgbGen Identity
  176.         blendFunc GL_DST_COLOR GL_ZERO
  177.     }
  178. }
  179.  
  180. textures/special/swill
  181. {
  182.     qer_editorimage textures/special/swill.tga
  183. //    qer_trans .4
  184.     surfaceparm trans
  185.     surfaceparm water
  186.     surfaceparm nolightmap
  187.     cull none
  188. //    deformvertexes wave 20 sin 0 20 0 .1
  189.     {
  190.         map textures/special/swill.tga
  191. //        tcMod scale .33 .33
  192. //        tcMod scale 4 1
  193. //        tcMod turb .1 .3 .2 .1
  194.         tcMod scroll .03 0
  195.     }
  196.     {
  197.         map $lightmap
  198.         rgbGen Identity
  199.         blendFunc GL_DST_COLOR GL_ZERO
  200.         depthFunc equal
  201.     }
  202. }